package com.paranoidmonkey.ode;

public class Vector4 extends Vector3{
	public Vector4(){
		data=new float[4];
		setw(1.0f);
	}

	protected Vector4(float[] d){
		data=d;
	}

	public Vector4(float x,float y,float z,float w){
		data=new float[4];
		data[0]=x;
		data[1]=y;
		data[2]=z;
		data[3]=w;
	}

	public float w(){
		return data[3];
	}
	public void setw(float val){
		data[3]=val;
	}

}
